#include<iostream>
using namespace std;
int main(){
	int n,sum1 = 0,sum2 = 0,sum3 = 0, sum4 = 0;
	int arr[101];
	cin >> n;
	for(int i = 0; i < n; i++){
		cin >> arr[i];
		if(arr[i] <=18) sum1++;
		else if(arr[i] <=35) sum2++;
		else if(arr[i] <=60) sum3++;
		else if(arr[i] >=61) sum4++;
	}
	printf("%.2f%\n%.2lf%\n%.2lf%\n%.2lf%\n",sum1*1.0/n*100,sum2*1.0/n*100,sum3*1.0/n*100,sum4*1.0/n*100);
	return 0;
}
